<%@ page import="framework.common.Common" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
    <meta charset="utf-8">
    <title>牛皮</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <%-- 引入框架的js、css等 --%>
    <jsp:include page="${request.contextPath}/static/include.jsp" flush="true" />
    <%-- 引入本页面的js --%>
    <script type="text/javascript" src="/Url.do?method=getJs&url=aj/ajJsManager/js/ajJsManager.js"></script>

    <style type="text/css">
        a {
            color: #1E9FFF;
        }
    </style>

    <script type="text/html" id="isOnlineTpl">
        <input type="checkbox" lid="{{d.lid}}" name="isOnline" value="{{d.isOnline}}" lay-skin="switch" lay-text="是|否" lay-filter="isOnline" {{d.isOnline==IS_YES?'checked':''}}>
    </script>
    <script type="text/html" id="leftTableBar">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        {{#  if(d.isOnline == 0){ }}
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
        {{#  } }}
    </script>
    <script type="text/html" id="rightTableBar">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    </script>
</head>

<body>
    <div class="layui-row layui-col-space14">
        <%-- 左边的table --%>
        <div class="layui-col-md6">
            <div class="layui-card" style="height: 88%;">
                <div class="layui-card-header">脚本管理</div>
                <div class="layui-card-body">
                    <%--<form id="_form" class="layui-form" action="">
                        <div class="layui-inline">
                            <label class="layui-form-label" style="padding-left: 0px;">中文名</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" name="Q_caseNo_S_LK">
                            </div>
                        </div>
                        <button type="button" class="layui-btn layui-icon search_btn"
                                style="margin-left: 30px;padding: 0 10px;">&#xe615;&nbsp;查询</button>
                    </form>--%>
                    <script type="text/html" id="_leftTableToolbar">
                        <div class="table-tool-btn">
                            <button type="button" class="layui-btn layui-icon-add-1 layui-icon"
                                    onclick="toPage('aj/ajJsManager/jsp/add.jsp', {width:'40%', height:'60%', title:'新增'})">新增</button>
                        </div>
                    </script>
                    <table id="_leftTable" lay-filter="_leftTable"></table>
                </div>
            </div>
        </div>
        <div class="layui-col-md6">
            <%-- 右边的table --%>
            <div class="layui-card" style="height: 88%;">
                <div class="layui-card-header">脚本版本</div>
                <div class="layui-card-body">
                    <script type="text/html" id="_rightTableToolbar">
                        <div class="table-tool-btn">
                            <button type="button" class="layui-btn layui-icon-add-1 layui-icon toAddAjJsBtn">新增</button>
                            <button type="button" class="layui-btn layui-icon-delete layui-icon" id="deleteBatchAjJsBtn">批量删除</button>
                        </div>
                    </script>
                    <table id="_rightTable" lay-filter="_rightTable"></table>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
